package com.xuecheng.content.feignclient;

import com.xuecheng.content.config.MultipartSupportConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.multipart.MultipartFile;

public class MediaServiceClientFallback  implements MediaServiceClient{
    @Override
    public String uploadFile(MultipartFile upload, String objectName) {
// 无法获取异常
// @FeignClient(value = "media-api",configuration = {MultipartSupportConfig.class},fallback = MediaServiceClientFallback.class)
        return null;
    }
}
